const state = {
	token: null,
	userInfo: {},
	menuList: [],
	manual: {},
	userQua: {},
	attachments: []
};
const mutations = {
	setToken: (state, token) => {
		state.token = token;
	},
	setUserInfo: (state, userInfo) => {
		state.userInfo = userInfo;
	},
	setManual: (state, manual) => {
		state.manual = manual;
	},
	setMenuList: (state, menuList) => {
		state.menuList = menuList;
	},
	clearUser: (state) => {
		state.token = null;
		state.userInfo = {};
		state.menuList = [];
	},
	setUserQua: (state, userQua) => {
		state.userQua = userQua;
	},
	setAttachments: (state, attachments) => {
		state.attachments = attachments;
	}
};

const actions = {
	
};
export default {
	namespaced: true, //添加方便dispatch
	state,
	mutations,
	actions,
};
